﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace MvcApplication6.Models
{
    public partial class EventModel
    {
        //id
        public int Id { get; set; }
        //id_ce
        [Required, Range(1, int.MaxValue, ErrorMessage = "Vui lòng chọn Category Event.")]
        public int IdCe { get; set; }
        //title
        [Required(ErrorMessage = "*Vui lòng nhập Title")]
        public string Title { get; set; }
        //title2
        [Required(ErrorMessage = "*Vui lòng nhập Title2")]
        public string Title2 { get; set; }
        //image
        public string Image { get; set; }
        //start_date
        [Required(ErrorMessage = "*Vui lòng nhập Start Date")]
        public String StartDate { get; set; }
        //end_date
        [Required(ErrorMessage = "*Vui lòng nhập End Date")]
        public String EndDate { get; set; }
        //content
        public string Content { get; set; }
        //del_flg
        public int DelFlg { get; set; }

        //Dung cho upload File
        public HttpPostedFileBase FileImage { get; set; }
    }

}